package resources
{
	import global.$R;
	
	import loaders.GroupLoader;
	import loaders.LoadManager;
	
	public class RTBackground implements IResourceType
	{
		public static var BG_0:String = "demo/bg/BG-065.jpg"

		public var id:String;
		
		//						
		public function RTBackground(id:String)
		{
			this.id = id;
		}
		
		public function load(loader:GroupLoader):void
		{
			loader.add(id, LoadManager.TYPE_DISPLAY_OBJECT); 
		}
		
		public function onLoad(loader:GroupLoader):void {
			$R.bg[id] = loader.items[id].loader.getContent();
		}
	}
}